package com.cloud.client.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @packageName: com.api.config
 * @name: WebConfig
 * @description:
 * @author: 董定卓
 * @dateTime: 2019/6/14 11:38
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {


    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**").allowedOrigins("http://127.0.0.1:8848", "http://dongdingzhuo.gitee.io");
    }

}
